<?php
class Upload extends PortfoliosAppModel {

	var $name = 'Upload';
	var $useTable = "portfolios_uploads";
	var $actsAs = array(
		'Extend.MeioUpload' => array(
			'filename' => array(
				'dir' => 'img{DS}{model}{DS}{field}',
				'create_directory' => true,
				'allowed_mime' => array('image/jpeg', 'image/pjpeg', 'image/png', 'image/gif'),
				'allowed_ext' => array('.jpg', '.jpeg', '.png', 'gif'),
				'thumbsizes' => array('normal' => array('width'=>2000, 'height'=>2000))
			)
		)
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Portfolio' => array(
			'className' => 'Portfolios.Portfolio',
			'foreignKey' => 'portfolio_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>